package com.lcc;

import com.example.EnableHeaderConfig;
import com.example.TokenParser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

// 第一种 @ComponentScan({"com.example", "com.lcc"})
// 第二种 @Import(TokenParser.class)

// 第四种 自动注入
@EnableHeaderConfig

@ServletComponentScan    //开启了对Servlet组件的支持
@SpringBootApplication
public class TliasWebManagementApplication {

	public static void main(String[] args) {
		SpringApplication.run(TliasWebManagementApplication.class, args);
	}

}
